import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {TypeComponent} from './type.component';
import {TypeArticleComponent} from './type-article/type-article.component';

const routes: Routes = [
  {
    path: '',
    component: TypeComponent
  },
  {
    path: 'typearticle',
    // loadChildren: './modules/life/life.module#LifeModule'
    loadChildren: './type-article/type-article.module#TypeArticleModule'
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TypeRoutingModule {
}
